package com.hksj.cm.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author zengke
 * @version 1.0
 * @see CleanlinessLevel
 * @since 2024/3/7 11:24
 */
@ApiModel(value = "优良差/数字评价", description = "优良差/数字评价")
@Data
@TableName(value = "hk_cleanliness_level")
public class CleanlinessLevel {
    /**
     * 主键id
     */
    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 评级id
     */
    @ApiModelProperty(value = "评级字典值")
    @TableField(value = "rating_value")
    private String ratingValue;

    /**
     * 粒子id
     */
    @ApiModelProperty(value = "粒子字典值")
    @TableField(value = "particle_value")
    private String particleValue;


    /**
     * 粒子id
     */
    @ApiModelProperty(value = "建造标准字典值")
    @TableField(value = "construction_standards_value")
    private String constructionStandardsValue;


    /**
     * 粒子数量最小值
     */
    @ApiModelProperty(value = "粒子数量最小值")
    @TableField(value = "min")
    private Integer min;

    /**
     * 粒子数量最大值
     */
    @ApiModelProperty(value = "粒子数量最大值")
    @TableField(value = "max")
    private Integer max;

    /**
     * 评级类型
     */
    @ApiModelProperty(value = "评级类型(0=优良差评级 1=数字评级)")
    @TableField(value = "type")
    private Integer type;


    /**
     * 逻辑删除
     */
    @ApiModelProperty(value = "逻辑删除", hidden = true)
    @TableField("del_flag")
    @TableLogic(value = "0", delval = "1")
    private Integer delFlag;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @JsonFormat(timezone = "Asia/Shanghai", pattern = "yyyy-MM-dd")
    private Date createTime;

    /**
     * 创建者id
     */
    @ApiModelProperty(value = "创建者id")
    @TableField(value = "creator")
    private Long creator;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(timezone = "Asia/Shanghai", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * 更新者id
     */
    @ApiModelProperty(value = "更新者id")
    @TableField(value = "updater")
    private Long updater;
}
